Follows-up
b90c69cdf7.
This takes the approach of throwing an error to make the exact issue
obvious.
Unlike other versions (including the code in jQuery it is loosely
based on), this does not attempt to cleanup by stopping the effects
queue.
Change-Id: Ibb6ca0d083d4e8f1556e6f3493da17f7a5f44024
// still suppressed by the end of the test.
restoreWarnings();
- // Check for (and clean up, if possible) incomplete animations/requests/etc.
+ // Check for incomplete animations/requests/etc and throw
+ // error if there are any.
if ( $.timers && $.timers.length !== 0 ) {
// Test may need to use fake timers, wait for animations or
// call $.fx.stop().